package com.zpark.service.impl;

import com.zpark.mapper.IRankingMapper;
import com.zpark.pojo.Ranking;
import com.zpark.service.IRankingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @PackageName: com.zpark.service.impl
 * @ClassName: RankingServiceImpl
 * @Description:
 * @author: RZS
 * @date: 2022/11/8  11:29
 */
@Service
public class RankingServiceImpl implements IRankingService {

    @Autowired
    private IRankingMapper rankingMapper;

    @Override
    public List<Ranking> findAll() {
        return rankingMapper.selectAll();
    }

    @Override
    public Ranking findById(Integer id) {
        return rankingMapper.selectByPrimaryKey(id);
    }
}
